#include <REGX52.H>
#include <INTRINS.H>

void Delay500ms(unsigned int ms)		//@11.0592MHz
{
	unsigned char i, j;
	while(ms--)
	{
		_nop_();
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
	}
}


void main()
{
	while(1)
	{
		P2=0xFE;
		Delay500ms(200);
		P2=0xFD;
		Delay500ms(200);	
		P2=0xFB;
		Delay500ms(200);		
		P2=0xF7;
		Delay500ms(200);		
		P2=0xEF;
		Delay500ms(200);		
		P2=0xDF;
		Delay500ms(200);
		P2=0xBF;
		Delay500ms(200);
		P2=0x7F;
		Delay500ms(200);
	}
}

